package com.devops.admin.service;

import com.devops.admin.model.ExportDataJobBatch;
import com.baomidou.mybatisplus.extension.service.IService;
import com.devops.admin.model.TableResult;
import com.devops.admin.po.ExportDataJobBatchPo;
import com.devops.admin.vo.DOSPageVo;
import org.springframework.transaction.annotation.Transactional;

/**
* @author Dell
* @description 针对表【dos_export_data_job_batch(拉去数据批量任务)】的数据库操作Service
* @createDate 2024-10-14 11:11:43
*/
public interface ExportDataJobBatchService extends IService<ExportDataJobBatch> {

    boolean createBatch(ExportDataJobBatch exportDataJobBatch);

    @Transactional(rollbackFor = Exception.class)
    boolean updateBatch(ExportDataJobBatch exportDataJobBatch);

    boolean deleteBatch(Integer batchId);

    TableResult<ExportDataJobBatchPo>  getExportDataJobBatchList(ExportDataJobBatch exportDataJobBatch,
                                                                 DOSPageVo pageVo);
    boolean startOrPauseExportDataJobBatch(Integer batchId, Boolean active);


}
